If you use a browser to look at an XML file exported using the Crystal ML Schema, you'll see something like this:
After the XML and document type declarations, there is a list of tags. These tags represent the contents of your report arranged sequentially, item by item. For example, the first few lines of the XML data shown above represent a report that begins with a header area containing a cross
<Report xmlns="urn:crystal-r eports:schemas" xmlns:xsi="http://www.w3.org/ 1999/XMLSchema-i nstance"> <FormattedAreaPair Level="0" Type="Report"> <FormattedArea Type="Header"> <FormattedSections> <FormattedSection SectionNumber="0"> <FormattedReportObjects> <FormattedReportObject xsi:type="CTFormattedGrid"> <ObjectName>CrossTab1</ObjectName>
<report>
represents the report itself
<FormattedAreaPair>
represents the generic report area pair (such as a header and footer)
<FormattedArea Type="Header">
represents the specific report area: the header
<FormattedSections>
represents a subdivision of the report header area
<FormattedSection SectionNumber="0">
represents an iteration of the subdivision
<FormattedReportObject>
represents a report object (in this case, a formatted grid, or cross<ObjectName>
represents the report object's (crossThe entire XML file can be read in such a way. Each line in the XML data has a direct relation to your Crystal report and its Report Definition as defined in Crystal XML Schema and the XML Format dialog box.
Note: For more detailed information about the XML elements and tags in this example, see the Crystal ML Schema published at the following address:
http://www.seagatesoftware.com/xml/schema.xsd
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |